var App = require("../../base/app");
var utils = require("../../utils/utils");
var common = require("./common");
var aTreasure = require("./aTreasure");
var aAward2 = require("./aAward2");
var xiGua = new App("西瓜视频", {
  interval: 10,
  storage: common.storage,
});

xiGua.actions = [aTreasure];
xiGua.runTest = function () {
  common.toTask();
  sleep(utils.getRandom(5, 7, 1000));
};
xiGua.run = function () {
  if (common.inHome()) {
    sleep(utils.getRandom(1.5, 2, 1000));
    common.toTask();
    sleep(utils.getRandom(5, 12, 1000));
    aAward2.flow();
    sleep(utils.getRandom(2, 3, 1000));
    aTreasure.flow();
  }
};

module.exports = xiGua;
